package com.jiyun.controller;

import com.jiyun.model.statistics.juminSex;
import com.jiyun.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jiyun.service.juminSexService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("sex")
@CrossOrigin
public class juminSexController {
    @Autowired
    private juminSexService juminSexService;
    @RequestMapping("findSex")
    public List<juminSex> findSex(){
        return juminSexService.findSex();
    }
    @GetMapping("showSex")
    public List<juminSex> showSex(){
        return juminSexService.showSex();
    }
}
